using System;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Joy.Erp.BasicArchives.Core.Filters;

namespace Joy.Erp.BasicArchives.ItemMasters
{
    public interface IBillOfMaterialsAppService
    {
        Task<BillOfMaterialsDto> GetAsync(Guid id);
        Task<BillOfMaterialsDto> FindAsync(string filter);
        Task<BillOfMaterialsDto> FindBySourceKeyAsync(string sourceKey, string sourceType);
        Task<PagedResultDto<BillOfMaterialsDto>> GetListAsync(FilterRequestDto input);
        Task<PagedResultDto<BillOfMaterialsDto>> QueryAsync(FilterGroupRequestDto input);
        Task<ListResultDto<BillOfMaterialsDto>> GetWithChildrenAsync(Guid parentId, bool recursive = false);
        Task<ListResultDto<BillOfMaterialsDto>> GetChildrenAsync(Guid? parentId, bool recursive = false);
        Task<BillOfMaterialsDto> CreateAsync(BillOfMaterialsCreateDto input);
        Task<BillOfMaterialsDto> UpdateAsync(Guid id, BillOfMaterialsUpdateDto input);
        Task DeleteAsync(Guid id);
    }
}